package com.zj.project.common.base

import android.os.Bundle
import androidx.annotation.LayoutRes
import androidx.lifecycle.ViewModel

/**
 * createTime:2021/7/26 15:17
 * auth:张继
 * des:
 */
interface IBaseView<VM : ViewModel> {
    /**
     * 根布局
     */
    @LayoutRes
    fun layoutId(): Int

    /**
     * 创建viewModel
     */
    fun createViewModel(): VM

    /**
     * 初始化业务逻辑
     */
    fun initData(savedInstanceState: Bundle?)

    fun variableId(): Int

    fun isTranslucent(): Boolean
}